package com.wbsxch.shiro.mapper;

import com.wbsxch.shiro.domain.User;
import com.wbsxch.shiro.dto.UserDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface UserMapper {

    int insert(User record);

    int delete(Long id);

    int update(User record);

    List<User> selectAll(User record);

    User selectOne(Long id);

    User selectUserByUsername(@Param("username") String username);

    Set<String> selectUserRoleSet(Long id);

    Set<String> selectUserPermissionSet(Long id);

    List<UserDTO> selectAllUserDTO(UserDTO userDTO);
}
